<?php
defined('BASEPATH') or exit('No direct script access allowed');

/**
 * @model 账户controller，
 */
class UploadController extends Admin_Controller {

    public function __construct() {
        try {
            parent::__construct();
             $this->load->service("PService/UploadService");
//            $this->load->service("SService/UploadService");

        } catch (\TPException $e) {
            exit($e->getRetJson());
        }
    }


    public function upload_img($img) {
        $res = $this->UploadService->upload_img($img,104448000000000);
        exit(retSucc($res));
    }



    public function upload(){

        $res = $this->UploadService->upload($_POST);
        exit(retSucc($res));
    }



}
